#ifndef MYRUNABLE_H
#define MYRUNABLE_H

#include <QRunnable>
#include <hiredis.h>


class MyRunable : public QRunnable
{
public:
    MyRunable();
    void run() override;
    MyRunable(int startId, int count,redisContext* context);
    void stopSend();
private:
    bool flag;
    int m_startId;
    int m_count;
    redisContext* m_ctx;
    int generateValue();
};

#endif // MYRUNABLE_H
